package com.api.shopapi.service.impl;

import com.api.shopapi.entity.OrderXiaole;
import com.api.shopapi.mapper.OrderXiaoleMapper;
import com.api.shopapi.service.OrderXiaoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderXiaoleServiceImplOne")
public class OrderXiaoleServiceImpl implements OrderXiaoleService {

    @Autowired
    private OrderXiaoleMapper orderXiaoleMapper;

    @Override
    public int insert(OrderXiaole orderXiaole) {
        return orderXiaoleMapper.insert(orderXiaole);
    }

    @Override
    public int update(OrderXiaole orderXiaole) {
        return orderXiaoleMapper.update(orderXiaole);
    }


    @Override
    public int delete(String orderXiaoleCode) {
        return orderXiaoleMapper.delete(orderXiaoleCode);
    }

    @Override
    public List<OrderXiaole> getByTimeAndCode(String userCode, String serveClassCode) {
        return orderXiaoleMapper.getByTimeAndCode(userCode,serveClassCode);
    }

}
